﻿using System;
using System.Runtime.Serialization;

namespace WSU.Cheka.Data.Contracts
{
    [DataContract]
    public sealed class Student
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }
    }

    // chekanote: one guideline to design data contract is that it is better to separate 
    // data contract from business entity
    [DataContract]
    public sealed class Lesson
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public Student[] Students { get; set; }
    }
}
